package com.ke.forum.forumapi.service;

import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;

public interface UploadService {

    String upload(MultipartFile multipartFile) throws IOException, InvalidKeyException, RegionConflictException, Exception;

    String uploadByPath(MultipartFile multipartFile,String path) throws IOException;

    Boolean delete(String url);
}
